import { RouterProvider } from 'react-router-dom';
import CircularProgress from '@mui/material/CircularProgress';
import ScopedCssBaseline from '@mui/material/ScopedCssBaseline';
import { router } from './routes';
import 'mapbox-gl/dist/mapbox-gl.css';
import '@/assets/global.less';

const App = () => {
  return (
    <ScopedCssBaseline>
      <RouterProvider router={router} fallbackElement={<CircularProgress />} />
    </ScopedCssBaseline>
  );
};

export default App;
